import React from 'react';

export class ChildA extends React.Component {
  render() {
    return (
      <div style={{ border: '1px solid red', margin: '16px', padding: '16px' }}>
        <h2>ChildA</h2>
        这是 ChildB 传递来的消息：{this.props.msg}
      </div>
    );
  }
}
